#ifndef __ETHERNETIF_H__
#define __ETHERNETIF_H__

#include "stm32H7xx.h"
#include "lwip/err.h"
#include "lwip/netif.h"
#include "stm32H7xx_hal_eth.h"
#include "eth.h"
#include "timer.h"
#include "lwip/tcp_impl.h"


extern struct netif gnetif;


err_t ethernetif_init(struct netif *netif);
err_t ethernetif_input(struct netif *netif);
void ethernet_link_check_state(struct netif *netif);

void LwIP_Init(void);
void LwIP_Pkt_Handle(void);
#endif
